package com.ky.course.service.impl;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;

import com.ky.common.course.entity.Course;
import com.ky.common.param.CourseVo;

import com.ky.course.mapper.CourseMapper;
import com.ky.course.service.CourseService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ky.gp.common.param.CourseMsg;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 课程表 服务实现类
 * </p>
 *
 * @author zpa
 * @since 2024-06-15
 */
@Service
public class CourseServiceImpl extends ServiceImpl<CourseMapper, Course> implements CourseService {

    @Autowired
    private CourseMapper courseMapper;


    @Override
    public List<CourseVo> getCourseList(CourseMsg courseMsg) {
        for (CourseVo courseVo : courseMapper.selectAllByType(courseMsg)) {
            System.out.println("courseVo = " + courseVo);
        }

        return  courseMapper.selectAllByType(courseMsg);


    }
}
